<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let n =+prompt('请输入秒数')
        function fn(arr=[]){
            let h =parseInt(n/60/60%24)
            h =h<10 ? '0'+h:h
            let m =parseInt(n/60%60)
            m =m<10 ? '0'+m:m
            let s =parseInt(n%60)
            s =s<10 ? '0'+s:s
            return [h+`小时`,m+`分`,s+`秒`]
        }
        document.write(`转换完毕之后是`+fn(n))
    </script>
</body>
</html>